<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="LAFDC.DataAccess" %>
<%@ Import Namespace="LAFDC.Logging" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
   <title>Routage: Ajout</title>
   <link type="text/css" rel="stylesheet" href="skins/style.css"/>
   <link type="text/css" rel="stylesheet" href="skins/forms.css"/>
   <script type="text/javascript">
       var c = new Array (8);
       var prev_id='';var asso='';var code='';var destinataire='';
       function CheckForm() {
            c[0]=document.routage_form.prev_id.value;
            c[1]= '' //document.routage_form.asso.value;
            c[2]=document.routage_form.code.value;
            c[3]=document.routage_form.destinataire.value;
            c[4]=document.routage_form.address1.value;
            c[5]=document.routage_form.address2.value;
            c[6]=document.routage_form.ville.value;
            c[7]=document.routage_form.quantite.value;
        
        var save_url="routageadd.aspx?prev_id=" + c[0] + "&asso=" + c[1] + "&code=" + c[2] + "&destinataire=" + c[3] + "&address_1=" + c[4] + "&address_2=" + c[5] + "&ville_cp=" + c[6] + "&quantite=" + c[7];
        
        // Redirect to the save page
        window.location=save_url;
    }
    </script>
</head>
<body>
    <div id="header">
        <table style="width: 100%">
            <tr style="height: 30px">
                <td style="width: 3%" align="center"><a href="/LAFDCWeb" target="_parent">
                    <img alt="Accueil" src="images/home_16x16.PNG" border="0" /></a></td>
                <td style="width: 70%">Fichier adh&eacute;rent: Ajouter une entr&eacute;e dans le Routage</td>
                <td style="width: 20%" align="right">
					<a href=""><img src="images/del.gif" border="0" alt="Annuler"/></a>
				</td>
            </tr>
        </table>
        <hr />   
    </div>
	<form name="routage_form">
		<label>Prev_id:</label> <input class="short" id="prev_id"/><br/>
		<div class="hidden"><label>Association:</label><input class="short" id="asso"/><br/></div>
		<label>Code:</label><input class="short" id="code"/><br/>
		<label>Destinataire:</label><input id="destinataire" /><br/>
		<label>Adresse:</label><input id="address1"/><br/>
		<label>Adresse:</label><input id="address2"/><br/>
		<label>Code postal Ville:</label><input id="ville"/><br/>
		<label>Quantite:</label><input class="short" id="quantite"/><br/>
		<div class="hidden"><label>Synchrone:</label><input id="synchrone"/><br/></div>
		<!--label id="debug_label"></label><br/-->
		<input type="button" id="submit" value="Enregistrer" onClick="CheckForm()"/> <input type="Button" ID="cancel" value="Annuler" onClick="window.location.reload()"/>
	</form>
</body>
</html>